﻿using ModernChannel.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ModernChannel.Model.Interface
{
    public interface IOrderProvider
    {
        List<OrderInfo> SearchOrders(out int totalRecord, string textSearch, string fromDate = null, string toDate = null, int pagesize = 0, int pageindex = 0);

        List<OrderInfo> SearchOrders(out int totalRecord, string shipcode, string billcode, string shipname, string city, DateTime? invoicedate, bool? transferFlag = null, int pagesize = 0, int pageindex = 0);

        OrderInfo Retrieve(string orderNumber, string invoiceNumber, string lineNumber);

        bool Add(OrderInfo obj);

        bool Update(OrderInfo obj);
    }
}
